import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'node:path'
import vueSetupExtend from 'vite-plugin-vue-setup-extend' // 引入插件

// https://vitejs.dev/config/
export default defineConfig({
  base: '/projector/',
  plugins: [vue(),vueSetupExtend()],
  server: {
    host: true,
    port: 3003,
  },
  resolve: {
    alias: {
      '@': path.join(__dirname, './src'),
      '~': path.join(__dirname, './src/assets'),
    },
  },
  build: {
    outDir:'projector'
  }
})